//
//  UIView+GlowView.h
//  MyFunctionDemo
//
//  Created by Ting Han on 2017/9/2.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <UIKit/UIKit.h>

//辉光效果
@interface UIView (GlowView)

//辉光透明度
@property (nonatomic,strong) NSNumber *glowOpacity;
//辉光颜色
@property (nonatomic,strong) UIColor *glowColor;
//辉光的阴影半径
@property (nonatomic,strong) NSNumber *glowRadius;

//辉光的一次周期，（从显示到透明或者从透明到显示），默认1s
@property (nonatomic, strong) NSNumber *glowAnimationDuration;

//保持辉光的时间 0.5
@property (nonatomic, strong) NSNumber *glowDuration;

//不显示辉光的时间 0.5
@property (nonatomic, strong) NSNumber *hideDuration;


/**
 *  创建出辉光layer
 */
- (void)createGlowLayer;

/**
 *  插入辉光的layer
 */
- (void)insertGlowLayer;

/**
 *  移除辉光的layer
 */
- (void)removeGlowLayer;

/**
 *  显示辉光
 */
- (void)glowToshowAnimated:(BOOL)animated;

/**
 *  隐藏辉光
 */
- (void)glowToHideAnimated:(BOOL)animated;

/**
 *  开始循环辉光
 */
- (void)startGlowLoop;






@end
